import request from '@/utils/request'

// 查询凭证管理列表
export function listVoucher_manage() {
  return request({
    url: '/voucher/voucherManage/getVoucherList',
    method: 'get',
  })
}

// 查询凭证管理详细
export function getVoucher_manage(voucherId) {
  return request({
    url: '/voucher/voucherManage/' + voucherId,
    method: 'get'
  })
}

// 新增凭证管理
export function addVoucher_manage(data) {
  return request({
    url: '/voucher/voucherManage',
    method: 'post',
    data: data
  })
}

// 修改凭证管理
export function updateVoucher_manage(data) {
  return request({
    url: '/voucher/voucherManage',
    method: 'put',
    data: data
  })
}

// 删除凭证管理
export function delVoucher_manage(voucherId) {
  return request({
    url: '/voucher/voucherManage/' + voucherId,
    method: 'delete'
  })
}
